package com.css.zfzx.sjcj.modules.qhrisklevelmappolygonprovince.service;

import com.alibaba.fastjson.JSONObject;
import com.css.zfzx.sjcj.modules.qhrisklevelmappolygonprovince.repository.entity.QhRiskLevelMapPolygonProvinceEntity;
import com.css.zfzx.sjcj.modules.qhrisklevelmappolygonprovince.viewobjects.QhRiskLevelMapPolygonQueryParams;

import java.util.List;

/**
 * @author andy
 * @date 2021-01-26
 */

public interface QhRiskLevelMapPolygonProvinceService {

    public JSONObject queryQhRiskLevelMapPolygons(QhRiskLevelMapPolygonQueryParams queryParams, int curPage, int pageSize);

    public JSONObject queryQhRiskLevelMapPolygonsByFileName(QhRiskLevelMapPolygonQueryParams queryParams, int curPage, int pageSize, String sort, String order);

    public QhRiskLevelMapPolygonProvinceEntity getQhRiskLevelMapPolygon(String id);

    public QhRiskLevelMapPolygonProvinceEntity saveQhRiskLevelMapPolygon(QhRiskLevelMapPolygonProvinceEntity qhSiteClassResult);

    public QhRiskLevelMapPolygonProvinceEntity updateQhRiskLevelMapPolygon(QhRiskLevelMapPolygonProvinceEntity qhSiteClassResult);

    public void deleteQhRiskLevelMaps(List<String> ids);

    public JSONObject getQhRiskLevelMapPolygons(QhRiskLevelMapPolygonQueryParams queryParams);

    public void saveOrUpdate(QhRiskLevelMapPolygonProvinceEntity scrEntity);

    public String judgeFileParams(String[] datas);

    public void deleteQhRiskLevelMapPolygonsByFileName(List<String> fileNames) throws Exception;

    public int lookUpQhRiskLevelMapPolygons(QhRiskLevelMapPolygonQueryParams queryParams);

    //校验
    public String checkSHPFiles(String filePath, String province, String city, String area);

    //保存
    public String newImportShapeFile(String filePath, String province, String city, String area, String createUser,String codeType,int dataLength);

    //校验GDB文件
    public String checkGDBFiles(String filePath, String province, String city, String area);

    //保存GDB文件
    public String newImportGDBFile(String filePath, String province, String city, String area, String createUser,String codeType,int dataLength);
}
